package chen.web.test;

import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import chen.web.forum.Category;
import chen.web.forum.CategoryManager;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({"/test.xml"})
public class CategoryManagerTesting {
	@Autowired
	CategoryManager cm ;
	
	@Test
	public void testGetCategory(){
		Category cat = cm.get(4);
		Assert.assertNotNull(cat);
	}
	
}
